package com.bdqn.crm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdqn.crm.mapper.ProductMapper;
import com.bdqn.crm.mybatis.ServiceImpl;
import com.bdqn.crm.pojo.Product;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements ProductService {
    @Override
    public IPage<Product> page(String prodName, String prodType, String prodBatch, Page page) {
        return this.getPage(page,new Product(prodName,prodType,prodBatch));
    }
}
